#!/bin/awk -f
## assuming mu=2; always skip 1st layer (fixed)
## and print only second tiling layers
## Synopsis: cat TILING | tflatten
FNR==1{
  nt=$3; nn=$1;
  print nn/2,"1",$3" # tflatten";
}
FNR>1&&FNR<4{print} #basis
FNR==3{
  for(i=1;i<=nt;i++){
    for(j=1;j<=nn;j++){
      getline;
      if(j>nn/2){print}
    };
  }
}
END{}
